package test.work.main;

import java.util.Scanner;

import test.work.dao.DepartmentDao;
import test.work.dao.StudentDao;
import test.work.service.DepartmentService;
import test.work.service.StudentService;

public class ERP {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);//입력받을 스캐너 생성
		boolean flag=true;//스위치 문장을 빠져나갈 변수 선언
		System.out.println("1. 학생정보  2. 학과정보   3. 종료");//선택지
		while(flag){
		switch (sc.nextInt()) {
			case 1:
				new StudentService(new StudentDao(), sc);//StudentSrevice 실행
				break;

			case 2:
				new DepartmentService(new DepartmentDao(), sc);//DepartmentService 실행 
				break;
				
			default:
				sc.close();
				flag=false;
		}
	}
}}